/**
 * Class: Dot2D
 *
 * Purpose: 
 *
 * Created: Jan 27, 2010 @ 9:37:10 AM
 * @author Ken Scott
 */
package org.openfantasia.ps.shape;

import org.openfantasia.ps.particle.Particle;
import org.openfantasia.ui.PFrame;

import java.util.ArrayList;
import java.util.List;

public class MetaShape extends Shape {

	private List<Shape> shapes = new ArrayList<Shape>();


	public MetaShape(PFrame frame) {
		super(frame);
	}


	public void addShape(Shape shape) {
		shapes.add(shape);
	}


	public void removeShape(Shape shape) {
		shapes.remove(shape);
	}


	public void drawShape(Particle particle) {
		for (Shape shape : shapes) {
			shape.draw(particle);
		}
	}
}